using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace WorkFlow.Net
{
    public class RemoteDataRoot
    {
        [JsonProperty("msg")] public string Msg { get; set; }

        [JsonProperty("code")] public int Code { get; set; }

        [JsonProperty("data")] public JObject Data { get; set; }
        
        public static RemoteDataRoot Default => new RemoteDataRoot(){Code = 500};
    }

    public class HistoryData
    {
        [JsonProperty("todayTime")] public int TodayTime { get; set; }
        
        [JsonProperty("totalTime")] public int TotalTime { get; set; }
        
        [JsonProperty("totalNumber")] public int TotalNumber { get; set; }
    }

    public class UserDetail
    {
        [JsonProperty("userInfo")] public TenantUserInfo TenantUser { get; set; }
    }

    public class TenantUserInfo
    {
        [JsonProperty("tenantUserDto")] public PlayerInfo UserInfo { get; set; }
    }
    
    public class PlayerInfo
    {
        [JsonProperty("tenantUserId")] public string TenantUserId { get; set; }
        [JsonProperty("userId")] public string UserId { get; set; }
        [JsonProperty("nickName")] public string NickName { get; set; }
        [JsonProperty("avatar")] public string Avatar { get; set; }
        [JsonProperty("sex")] public int Sex { get; set; }
    }
}

